package com.zwr.sheller.shop.service.impl;

import com.zwr.sheller.core.pojo.Vouchers;
import com.zwr.sheller.shop.mapper.VouchersMapper;
import com.zwr.sheller.shop.service.VouchersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 *@author Kang
 *@date
 */
@Service("vouchersService")
public class VouchersServiceImpl implements VouchersService {

    @Autowired(required = false)
    VouchersMapper vouchersMapper;

    @Override
    public Integer add(Vouchers vouchers) {

        int insert = vouchersMapper.insert(vouchers);
        return insert;
    }
}
